package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcFollowDataBsugar;
import com.csun.cmny.provider.model.dto.follow.FollowDataPageQuery;
import com.csun.cmny.provider.model.dto.follow.UpFollowDataBsugarDto;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-16 21:21
 * @Description: the interface dmc follow data bsugar service
 */
public interface DmcFollowDataBsugarService extends IService<DmcFollowDataBsugar> {

    /**
     * query dmc follow data bsugar list page
     *
     * @param followDataPageQuery   the follow data query page
     *
     * @return  the page info
     */
    PageInfo queryDmcFollowDataBsugarListWithPage(FollowDataPageQuery followDataPageQuery);

    /**
     * up follow data bsuger
     *
     * @param upFollowDataBsugarDto up follow data bsugar dto
     * @param loginAuthDto          login auth dto
     *
     * @return  the int.
     */
    Integer upFollowDataBsugar(UpFollowDataBsugarDto upFollowDataBsugarDto, LoginAuthDto loginAuthDto);

    /**
     * @description: TODO
     * @param: oldmanId 老人ID
     * @return: 老人设备最新一条数据
     * @throws
     * @author huangxm
     * @date 2019/3/15 11:42
     */
    Map<String,Object> getRecentData(Integer oldmanId);
}
